package demo1;

class Outclass {

    public int data1 = 1;
    public static int data2 = 2;
    class InnerClass {
        public void test() {
            System.out.println("哈哈");
        }
    }

public class Main_2 {
    public static void main(String[] args) {
        //如何创建一个实例内部类对象？
        Outclass outclass = new Outclass();
        Outclass.InnerClass innerClass = outclass.new InnerClass();
    }
}
}
